<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'Addindustry.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" type="text/css" href="<%=basePath%>/css/biaoge.css"/>
 
  </head>
  
  <body>
  <div style="margin-left: 250px;margin-top: 50px" >
   &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;
   &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;
     &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;
   &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;
     &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;
   &nbsp; &nbsp;
   <font size="3" color="blue">添加工厂</font>
      <form action="addindustry" method="post">
       <table id="mytable">
        <tr>
        <th>工厂名称：</th><td><input type="text" name="indusname" width="500px"></td>
        <tr>
        <tr>
        <th>工厂地址：</th><td><input type="text" name="indusaddress"></td>
        <tr>
        <tr>
        <th>工厂负责人：</th><td><input type="text" name="induspal"></td>
        <tr>
        <tr>
        <th>电话号码：</th><td><input type="text" name="industel"></td>
        <tr>
        <tr>
        <th>邮箱：</th><td><input type="text" name="indusmail"></td>
        <tr>
        <tr>
        <th>主营业务：</th>
        <td>
        <c:forEach items="${prolist}" var="pro">
        <input type="checkbox" name="induspro" value="${pro.productId}">${pro.productName}
        </c:forEach>
        <!--  <input type="checkbox" name="induspro" value="2">车贴<br>
        <input type="checkbox" name="induspro" value="3">车牌框
        <input type="checkbox" name="induspro" value="4">钥匙扣 -->
        </td>
        <tr>
       </table><br>
        &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;
        <input type="submit" value="确认添加"> <input type="button" value="返回"  onclick="window.location='industryinformation'">
      </form>
      </div>
  </body>
</html>
